package com.cysyz.sql.column.html.mapper.validate.impl;

import cn.org.rapid_framework.generator.provider.db.table.model.Column;

/**
 * Created by admin oabstract-24.
 */
public class RequireColumnHtmlValidateInfoMapper extends BaseColumnHtmlValidateInfoMapper{

    @Override
    protected String getValidateString() {
        return "required";
    }

    @Override
    public boolean support(Column obj) {
        if (obj.isNullable()) {
            return false;
        } else {
            return true;

        }
    }
}
